import { getDictFunc, formatDate, formatBoolean, filterDict, filterDataSource, returnArrImg, onDownloadFile } from '@/utils/format'
import { reactive } from 'vue'
import { ref } from 'vue'
// import * as a from 'amtf/a/utils';
import *  as a from 'amtf/utils'

export default function use字典(字段名) {
  const options = reactive([])
  // 获取需要的字典 可能为空 按需保留
  const setOptions = async () => {
    const res = await getDictFunc(字段名)
    a.数组重予(options,res)
  }

  // 获取需要的字典 可能为空 按需保留
  setOptions()
  return {
    options,
  };
}
